/*
 *    This program is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    2013 year
 *    Author: Esipenko Aleksey (Alexorleon)
 *    E-Mail: alexorleon@gmail.com
 */
#ifndef CREATENEWPLACEMENT_H
#define CREATENEWPLACEMENT_H


#include <QtSql>
#include <QDialog>

namespace Ui {
class createNewPlacement;
}

class createNewPlacement : public QDialog
{
    Q_OBJECT
    
public:
    explicit createNewPlacement(QWidget *parent = 0);
    ~createNewPlacement();
    
private:
    Ui::createNewPlacement *ui;

    void createConnections();
    void requestdatabase();

    QSqlTableModel model;
private slots:
    void slot_deleteItem();
    void slot_addItem();
    void slot_editPlace();
    void slot_editPhone();
    void slot_editEmail();
};

#endif // CREATENEWPLACEMENT_H
